import VueRouter from 'vue-router'
// import { link } from 'fs';


import HomeContainer from './components/Tabbar/HomeContainer.vue'
import HuiYuanContainer from './components/Tabbar/HuiYuanContainer.vue'
import SearchContainer from './components/Tabbar/SearchContainer.vue'
import ShoppingCarContainer from './components/Tabbar/ShoppingCarContainer.vue'

// 3. 创建路由对象
var router = new VueRouter({
  routes: [
    { path:'/' , redirect: '/home' },
    { path:'/home', component: HomeContainer },
    { path:'/huiyuan',component:HuiYuanContainer },
    { path:'/shoppingCar',component:ShoppingCarContainer },
    { path:'/search',component:SearchContainer }

  ],
  linkActiveClass:'mui-active'
})

// 把路由对象暴露出去
export default router